import requests
from config import RunConfig

def 送审核(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/check/send",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 审核日志(para):
    response = requests.get(
        url=RunConfig.url + "outcome/report/log/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 成果报告详情(para):
    response = requests.get(
        url=RunConfig.url + "outcome/report/info?id=&methodIdStr=&projectId=&taskDetailId=&taskPipelineId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 审核(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/check",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 修改成果报告(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 成果报告上传(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/create",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 送复核(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/review/send",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 成果报告审查单查看(para):
    response = requests.get(
        url=RunConfig.url + "outcome/report/check/info/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 分页查询成果报告文件(para):
    response = requests.get(
        url=RunConfig.url + "outcome/report/file/{reportId}?page=1&perPage=10",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 分页查询成果报告(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 复核(para):
    response = requests.post(
        url=RunConfig.url + "/outcome/report/review",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
